package cn.easybuy.service.impl;

import java.util.List;

import cn.easybuy.dao.OrderDao;
import cn.easybuy.dao.impl.OrderDaoImpl;
import cn.easybuy.entity.Order;
import cn.easybuy.service.OrderService;

public class OrderServiceImpl implements OrderService{
	OrderDao orderDao=new OrderDaoImpl();
	@Override
	public List<Order> getOrdersList() {
		return orderDao.getOrdersList();
	}
	@Override
	public int save(Order order) {
		return orderDao.save(order);
	}
	@Override
	public int getIdNewByUserId(int userId) {
		return orderDao.getIdNewByUserId(userId);
	}

}
